package wadassignment2

class Customer {

	String emailAddress;
	String password;
	Date dateCreated;

	static hasMany = [bids: Bid, listings: Listing, winnings: Listing]
	static mappedBy = [listings:'seller', winnings:'winner'];
	
	static constraints = {
		emailAddress(email:true, blank: false,unique:true) 
		password(size:6..8, blank: false, password: true)
	}
}
